import cv2

if __name__ == "__main__":
    front_cam_Object.start()
    while True:
        try:
            img = front_cam_Object.read()
            imgresize = cv2.resize(img, (100,100))
            cv2.imshow('a',imgresize)
        except Exception as e:
            print('error')
            pass
        cv2.waitKey(2)